﻿<ss:SlView
    x:Class="SmartSpace.UI.Silverlight.Themes.Fashtion.HeaderPanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
    xmlns:ss="clr-namespace:SmartSpace.UI.Silverlight;assembly=SmartSpace.UI.Silverlight"
    xmlns:my="clr-namespace:SmartSpace.UI.Silverlight.Themes.Fashtion"
    mc:Ignorable="d"
    d:DesignWidth="600">
    <ss:SlView.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="./DictionaryForm.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </ss:SlView.Resources>
    <Grid Height="60" Background="#78000000">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="auto"/>
        </Grid.ColumnDefinitions>
        <Image Name="_ctlImgLogo" Source="./Resources/logo.png" Grid.Column="0" Width="32" Height="32" Margin="10,0,0,0"/>
        <ss:SlH1 x:Name="_ctlAppTitle" Grid.Column="1" Margin="10,0,0,0" HorizontalAlignment="Left">
            <TextBlock Text="系统标题名称栏目" FontWeight="Bold"/>
        </ss:SlH1>
        <Grid Grid.Column="2">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top" >
                <HyperlinkButton Foreground="White" Margin="0,5,5,0">注销</HyperlinkButton>
                <HyperlinkButton Foreground="White" Margin="0,5,5,0">
                    <StackPanel Orientation="Horizontal">
                        <Image Source="./Resources/settings.png" Width="28" Height="28" Margin="-5,-5,-5,0"/>
                        <TextBlock Text="设置"/>
                    </StackPanel>
                </HyperlinkButton>
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="5">
                <TextBlock Foreground="White" Text="欢迎您:" Margin="0,0,0,0"/>
                <Image Source="./Resources/user.png" Width="16" Height="16" Margin="2,0,2,0"/>
                <TextBlock Name="_ctlTxtUser" Foreground="White" Text="测试用户" Margin="0,0,0,0"/>
            </StackPanel>
        </Grid>
    </Grid>
</ss:SlView>
